package com.itluma.itluma.openapi.pojo;

import java.util.ArrayList;
import java.util.List;

public class ApiMappingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApiMappingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameIsNull() {
            addCriterion("gatewayapiname is null");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameIsNotNull() {
            addCriterion("gatewayapiname is not null");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameEqualTo(String value) {
            addCriterion("gatewayapiname =", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameNotEqualTo(String value) {
            addCriterion("gatewayapiname <>", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameGreaterThan(String value) {
            addCriterion("gatewayapiname >", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameGreaterThanOrEqualTo(String value) {
            addCriterion("gatewayapiname >=", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameLessThan(String value) {
            addCriterion("gatewayapiname <", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameLessThanOrEqualTo(String value) {
            addCriterion("gatewayapiname <=", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameLike(String value) {
            addCriterion("gatewayapiname like", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameNotLike(String value) {
            addCriterion("gatewayapiname not like", value, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameIn(List<String> values) {
            addCriterion("gatewayapiname in", values, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameNotIn(List<String> values) {
            addCriterion("gatewayapiname not in", values, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameBetween(String value1, String value2) {
            addCriterion("gatewayapiname between", value1, value2, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andGatewayapinameNotBetween(String value1, String value2) {
            addCriterion("gatewayapiname not between", value1, value2, "gatewayapiname");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlIsNull() {
            addCriterion("insideapiurl is null");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlIsNotNull() {
            addCriterion("insideapiurl is not null");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlEqualTo(String value) {
            addCriterion("insideapiurl =", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlNotEqualTo(String value) {
            addCriterion("insideapiurl <>", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlGreaterThan(String value) {
            addCriterion("insideapiurl >", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlGreaterThanOrEqualTo(String value) {
            addCriterion("insideapiurl >=", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlLessThan(String value) {
            addCriterion("insideapiurl <", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlLessThanOrEqualTo(String value) {
            addCriterion("insideapiurl <=", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlLike(String value) {
            addCriterion("insideapiurl like", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlNotLike(String value) {
            addCriterion("insideapiurl not like", value, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlIn(List<String> values) {
            addCriterion("insideapiurl in", values, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlNotIn(List<String> values) {
            addCriterion("insideapiurl not in", values, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlBetween(String value1, String value2) {
            addCriterion("insideapiurl between", value1, value2, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andInsideapiurlNotBetween(String value1, String value2) {
            addCriterion("insideapiurl not between", value1, value2, "insideapiurl");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(String value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(String value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(String value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(String value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(String value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLike(String value) {
            addCriterion("state like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotLike(String value) {
            addCriterion("state not like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<String> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<String> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(String value1, String value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(String value1, String value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andServiceidIsNull() {
            addCriterion("serviceid is null");
            return (Criteria) this;
        }

        public Criteria andServiceidIsNotNull() {
            addCriterion("serviceid is not null");
            return (Criteria) this;
        }

        public Criteria andServiceidEqualTo(String value) {
            addCriterion("serviceid =", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidNotEqualTo(String value) {
            addCriterion("serviceid <>", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidGreaterThan(String value) {
            addCriterion("serviceid >", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidGreaterThanOrEqualTo(String value) {
            addCriterion("serviceid >=", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidLessThan(String value) {
            addCriterion("serviceid <", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidLessThanOrEqualTo(String value) {
            addCriterion("serviceid <=", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidLike(String value) {
            addCriterion("serviceid like", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidNotLike(String value) {
            addCriterion("serviceid not like", value, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidIn(List<String> values) {
            addCriterion("serviceid in", values, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidNotIn(List<String> values) {
            addCriterion("serviceid not in", values, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidBetween(String value1, String value2) {
            addCriterion("serviceid between", value1, value2, "serviceid");
            return (Criteria) this;
        }

        public Criteria andServiceidNotBetween(String value1, String value2) {
            addCriterion("serviceid not between", value1, value2, "serviceid");
            return (Criteria) this;
        }

        public Criteria andIdempotentsIsNull() {
            addCriterion("idempotents is null");
            return (Criteria) this;
        }

        public Criteria andIdempotentsIsNotNull() {
            addCriterion("idempotents is not null");
            return (Criteria) this;
        }

        public Criteria andIdempotentsEqualTo(String value) {
            addCriterion("idempotents =", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsNotEqualTo(String value) {
            addCriterion("idempotents <>", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsGreaterThan(String value) {
            addCriterion("idempotents >", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsGreaterThanOrEqualTo(String value) {
            addCriterion("idempotents >=", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsLessThan(String value) {
            addCriterion("idempotents <", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsLessThanOrEqualTo(String value) {
            addCriterion("idempotents <=", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsLike(String value) {
            addCriterion("idempotents like", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsNotLike(String value) {
            addCriterion("idempotents not like", value, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsIn(List<String> values) {
            addCriterion("idempotents in", values, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsNotIn(List<String> values) {
            addCriterion("idempotents not in", values, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsBetween(String value1, String value2) {
            addCriterion("idempotents between", value1, value2, "idempotents");
            return (Criteria) this;
        }

        public Criteria andIdempotentsNotBetween(String value1, String value2) {
            addCriterion("idempotents not between", value1, value2, "idempotents");
            return (Criteria) this;
        }

        public Criteria andNeedfeeIsNull() {
            addCriterion("needfee is null");
            return (Criteria) this;
        }

        public Criteria andNeedfeeIsNotNull() {
            addCriterion("needfee is not null");
            return (Criteria) this;
        }

        public Criteria andNeedfeeEqualTo(String value) {
            addCriterion("needfee =", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeNotEqualTo(String value) {
            addCriterion("needfee <>", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeGreaterThan(String value) {
            addCriterion("needfee >", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeGreaterThanOrEqualTo(String value) {
            addCriterion("needfee >=", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeLessThan(String value) {
            addCriterion("needfee <", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeLessThanOrEqualTo(String value) {
            addCriterion("needfee <=", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeLike(String value) {
            addCriterion("needfee like", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeNotLike(String value) {
            addCriterion("needfee not like", value, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeIn(List<String> values) {
            addCriterion("needfee in", values, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeNotIn(List<String> values) {
            addCriterion("needfee not in", values, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeBetween(String value1, String value2) {
            addCriterion("needfee between", value1, value2, "needfee");
            return (Criteria) this;
        }

        public Criteria andNeedfeeNotBetween(String value1, String value2) {
            addCriterion("needfee not between", value1, value2, "needfee");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}